package com.ua.secure.dictionary.persistence;

import java.util.List;

import com.ua.common.model.Dictionary;
import com.ua.common.model.DictionaryItem;


/**
 * @author zhaoruiqing
 * 2013-05-03
 */
public interface DictionaryMapper {
	
	List<DictionaryItem> qryDictionaryItemByDictId(String dictId);
	
	List<DictionaryItem> qryDictionaryItemByDictCode(String dictCode);
	
	List<Dictionary> selectPageDictionaries(Dictionary dict);

	Integer dictionaryCount(Dictionary dict);
	
	void saveDict(Dictionary dict);
	
	void updateDict(Dictionary dict);

	void deleteDict(String dictId);

	Dictionary selectDictById(String dictId);
}
